package io.github.stary1993.kite.admin.quartz;


import io.github.stary1993.kite.quartz.constants.KiteQuartzEnum;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author stary1993
 */
@Slf4j
@Component("demo")
public class SpringBeanTaskDemo {

	/**
	 * 测试Spring Bean的演示方法
	 */
	@SneakyThrows
	public String demoMethod(String params) {
		log.info("测试于:{}，输入参数{}", LocalDateTime.now(), params);
		return KiteQuartzEnum.JOB_LOG_STATUS_SUCCESS.getType();
	}

}
